﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Billing.Win
{
    public class PagerListViewItem
    {
        int value;
        int allRows;
        int currentRowsCount;
        int pageCount;

        public int PageCount
        {
            get { return pageCount; }
            set { pageCount = value; }
        }

        public int CurrentRowsCount
        {
            get { return currentRowsCount; }
            set { currentRowsCount = value; }
        }

        public int AllRows
        {
            get { return allRows; }
            set { allRows = value; }
        }

        public int Value
        {
            get { return this.value; }
            set { this.value = value; }
        }

        public PagerListViewItem()
        {

        }

        public PagerListViewItem(int value, int pageCount, int currentRowsCount, int allRows)
        {
            this.value = value;
            this.allRows = allRows;
            this.currentRowsCount = currentRowsCount;
            this.pageCount = pageCount;
        }

        public override string ToString()
        {
            return string.Format("ფურცელი N{0} - {1}დან; (ჩანაწერები - {2}; სულ: - {3})", value, pageCount, currentRowsCount, allRows);
        }
    }
}
